home *** CD-ROM | disk | FTP | other *** search
- Path: news1.is.net!news
- From: Mark VanTassel <mvantassel@teambca.com>
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: Calling System Command in SUN C
- Date: Tue, 12 Mar 1996 08:15:28 -0500
- Organization: Barfield, Cauthen and Associates
- Message-ID: <314578F0.335D@teambca.com>
- References: <4i1hlu$asm@ni1.ni.net>
- NNTP-Posting-Host: dynamic12.is.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Ed Thomson wrote:
- > I would like to execute a system command such as mail or a shell
- > script I have generated and was wondering if anyone knew of an easy
- > way to do this within C.
-
- I know nothing about SUNs, but I think your compiler should have a "system"
- function (in stdlib.h), which will take a char string representing an
- OS command and will give you back a return code from said command.
-